<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
%>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <title>首页</title>

    <link href="../AmazeUI-2.4.2/assets/css/amazeui.css" rel="stylesheet" type="text/css"/>
    <link href="../AmazeUI-2.4.2/assets/css/admin.css" rel="stylesheet" type="text/css"/>

    <link href="../basic/css/demo.css" rel="stylesheet" type="text/css"/>

    <link href="../css/hmstyle.css" rel="stylesheet" type="text/css"/>
    <link href="../css/skin.css" rel="stylesheet" type="text/css"/>
    <script src="../AmazeUI-2.4.2/assets/js/jquery.min.js"></script>
    <script src="../AmazeUI-2.4.2/assets/js/amazeui.min.js"></script>

    <link rel="stylesheet" type="text/css" href="../css/showTip.css">
    <script type="text/javascript" src="../js/showTip.js"></script>
<!-- 分类加载字符串拼接-->
    <!-- c:foreach在js中只执行一次吧 -->
    <script type="text/javascript">

        window.onload=function (){

            var s1="";
            var s2="";
            var s3="";
            var s4="";
            var ss1="";
            var ss2="";
            var ss3="";
            var ss4="";

            var arr1 = new Array();
            var arr2 = new Array();
            var arr3 = new Array();
            var arr4 = new Array();

            var myclass1=new Array("am-u-sm-7 am-u-md-4 text-two sug","am-u-sm-7 am-u-md-4 text-two","am-u-sm-3 am-u-md-2 text-three big","am-u-sm-3 am-u-md-2 text-three sug","am-u-sm-3 am-u-md-2 text-three","am-u-sm-3 am-u-md-2 text-three last big");
            var myclass2=new Array("am-u-sm-4 text-four","am-u-sm-4 text-four sug","am-u-sm-6 am-u-md-3 text-five big","am-u-sm-6 am-u-md-3 text-five","am-u-sm-6 am-u-md-3 text-five sug","am-u-sm-6 am-u-md-3 text-five big");

            <c:forEach items="${cake}" var= "c">
            var model = {"id":"${c.productId}","name":"${c.productName}","price":"${c.productPrice}","image":"${c.productImage}"};
            arr1.push(model);
            </c:forEach>
            <c:forEach items="${cooky}" var= "c">
            var model = {"id":"${c.productId}","name":"${c.productName}","price":"${c.productPrice}","image":"${c.productImage}"};
            arr2.push(model);
            </c:forEach>
            <c:forEach items="${meat}" var= "c">
            var model = {"id":"${c.productId}","name":"${c.productName}","price":"${c.productPrice}","image":"${c.productImage}"};
            arr3.push(model);
            </c:forEach>
            <c:forEach items="${vege}" var= "c">
            var model = {"id":"${c.productId}","name":"${c.productName}","price":"${c.productPrice}","image":"${c.productImage}"};
            arr4.push(model);
            </c:forEach>

            for(var i =0;i<6;i++){

                ss1+= "<a href='/user/introduction?productId="+arr1[i].id+"'>"+arr1[i].name+"</a>";
                ss2+= "<a href='/user/introduction?productId="+arr2[i].id+"'>"+arr2[i].name+"</a>";
                ss3+= "<a href='/user/introduction?productId="+arr3[i].id+"'>"+arr3[i].name+"</a>";
                ss4+= "<a href='/user/introduction?productId="+arr4[i].id+"'>"+arr4[i].name+"</a>";

                s1+="<div class='"+myclass1[i]+"'>"+"<div class='outer-con '>"+"<div class='title '>"+
                    arr1[i].name+"</div><div class='sub-title '>"+arr1[i].price+"</div>" +
                "<i class='am-icon-shopping-basket am-icon-md  seprate'  onclick='addCart("+arr1[i].id+")' > </i> </div><a href='/user/introduction?productId="+arr1[i].id+"'><img src='"+arr1[i].image+"'/></a></div>";

                s2+="<div class='"+myclass2[i]+"'>"+"<div class='outer-con '>"+"<div class='title '>"+
                    arr2[i].name+"</div><div class='sub-title '>"+arr2[i].price+"</div>" +
                    "<i class='am-icon-shopping-basket am-icon-md  seprate' onclick='addCart("+arr2[i].id+")'></i> </div><a href='/user/introduction?productId="+arr2[i].id+"'><img src='"+arr2[i].image+"'/></a></div>";

                s3+="<div class='"+myclass1[i]+"'>"+"<div class='outer-con '>"+"<div class='title '>"+
                    arr3[i].name+"</div><div class='sub-title '>"+arr3[i].price+"</div>" +
                    "<i class='am-icon-shopping-basket am-icon-md  seprate' onclick='addCart("+arr3[i].id+")'></i> </div><a href='/user/introduction?productId="+arr3[i].id+"'><img src='"+arr3[i].image+"'/></a></div>";

                s4+="<div class='"+myclass2[i]+"'>"+"<div class='outer-con '>"+"<div class='title '>"+
                    arr4[i].name+"</div><div class='sub-title '>"+arr4[i].price+"</div>" +
                    "<i class='am-icon-shopping-basket am-icon-md  seprate' onclick='addCart("+arr4[i].id+")'></i> </div><a href='/user/introduction?productId="+arr4[i].id+"'><img src='"+arr4[i].image+"'/></a></div>";

            }
            $("#cake_top").append(ss1);
            $("#cooky_top").append(ss2);
            $("#meat_top").append(ss3);
            $("#vege_top").append(ss4);
            $("#one_cake").append(s1);
            $("#two_cooky").append(s2);
            $("#three_meat").append(s3);
            $("#four_vege").append(s4);

        }
        
        function addCart(productId) {
            var num =1;
            $.ajax({
                url:'/front/add',
                type:'post',
                data:{'productId':productId,'number':num},
                success:function(rs){
                    if(rs=="ok"){
                        showTip("已加入购物车！");
                    }
                    else{
                        showTip("加入购物车失败！");
                    }

                }
            })
        }

    </script>


</head>

<body>
<div class="hmtop">
    <!--顶部导航条 -->
    <jsp:include page="head.jsp"></jsp:include>

    <!--悬浮搜索框-->

    <div class="clear"></div>
</div>
<div class="banner">
    <!--轮播 -->
    <div class="am-slider am-slider-default scoll" data-am-flexslider id="demo-slider-0">
        <ul class="am-slides">
            <li class="banner1"><a href="introduction.jsp"><img src="../images/ad1.jpg"/></a></li>
            <li class="banner2"><a><img src="../images/ad2.jpg"/></a></li>
            <li class="banner3"><a><img src="../images/ad3.jpg"/></a></li>
            <li class="banner4"><a><img src="../images/ad4.jpg"/></a></li>

        </ul>
    </div>
    <div class="clear"></div>
</div>
<div class="shopNav">
    <div class="slideall">

        <div class="long-title"><span class="all-goods">全部分类</span></div>
        <div class="nav-cont">
            <ul>
                <li class="index"><a href="#">首页</a></li>
            </ul>

        </div>

        <!--侧边导航 -->
        <div id="nav" class="navfull">
            <div class="area clearfix">
                <div class="category-content" id="guide_2">

                    <div class="category">
                        <ul class="category-list" id="js_climit_li">
                            <li class="appliance js_toggle relative first">
                                <div class="category-info">
                                    <h3 class="category-name b-category-name"><i><img src="../images/cake.png"></i><a
                                            class="ml-22" title="点心">点心/蛋糕</a></h3>
                                    <em>&gt;</em></div>
                                <div class="menu-item menu-in top">
                                    <div class="area-in">
                                        <div class="area-bg">
                                            <div class="menu-srot">
                                                <div class="sort-side">
                                                    <dl class="dl-sort">
                                                        <dt><span title="蛋糕">蛋糕</span></dt>
                                                        <c:forEach var="c" items="${cake}">
                                                            <dd><a title="${c.productName}" href="/user/introduction?productId=${c.productId}"><span>${c.productName}</span></a></dd>
                                                        </c:forEach>
                                                    </dl>

                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <b class="arrow"></b>
                            </li>
                            <li class="appliance js_toggle relative">
                                <div class="category-info">
                                    <h3 class="category-name b-category-name"><i><img src="../images/cookies.png"></i><a
                                            class="ml-22" title="饼干、膨化">饼干/膨化</a></h3>
                                    <em>&gt;</em></div>
                                <div class="menu-item menu-in top">
                                    <div class="area-in">
                                        <div class="area-bg">
                                            <div class="menu-srot">
                                                <div class="sort-side">
                                                    <dl class="dl-sort">
                                                        <dt><span title="饼干">饼干</span></dt>
                                                        <c:forEach var="c" items="${cooky}">
                                                            <dd><a title="${c.productName}" href="/user/introduction?productId=${c.productId}"><span>${c.productName}</span></a></dd>
                                                        </c:forEach>
                                                    </dl>
                                                   <!-- <dl class="dl-sort">
                                                        <dt><span title="薯片">薯片</span></dt>
                                                        <dd><a title="乐事" href="#"><span>乐事</span></a></dd>
                                                        <dd><a title="上好佳" href="#"><span>上好佳</span></a></dd>
                                                    </dl> -->

                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <b class="arrow"></b>
                            </li>
                            <li class="appliance js_toggle relative">
                                <div class="category-info">
                                    <h3 class="category-name b-category-name"><i><img src="../images/meat.png"></i><a
                                            class="ml-22" title="熟食、肉类">熟食/肉类</a></h3>
                                    <em>&gt;</em></div>
                                <div class="menu-item menu-in top">
                                    <div class="area-in">
                                        <div class="area-bg">
                                            <div class="menu-srot">
                                                <div class="sort-side">
                                                    <dl class="dl-sort">
                                                        <dt><span title="肉类">肉类</span></dt>
                                                        <c:forEach var="c" items="${meat}">
                                                            <dd><a title="${c.productName}" href="/user/introduction?productId=${c.productId}"><span>${c.productName}</span></a></dd>
                                                        </c:forEach>
                                                    </dl>

                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <b class="arrow"></b>
                            </li>
                            <li class="appliance js_toggle relative">
                                <div class="category-info">
                                    <h3 class="category-name b-category-name"><i><img src="../images/bamboo.png"></i><a
                                            class="ml-22" title="素食、卤味">素食/卤味</a></h3>
                                    <em>&gt;</em></div>
                                <div class="menu-item menu-in top">
                                    <div class="area-in">
                                        <div class="area-bg">
                                            <div class="menu-srot">
                                                <div class="sort-side">
                                                    <dl class="dl-sort">
                                                        <dt><span title="素食">素食</span></dt>
                                                        <c:forEach var="c" items="${meat}">
                                                            <dd><a title="${c.productName}" href="/user/introduction?productId=${c.productId}"><span>${c.productName}</span></a></dd>
                                                        </c:forEach>

                                                    </dl>

                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <b class="arrow"></b>
                            </li>
                            <li class="appliance js_toggle relative">
                                <div class="category-info">
                                    <h3 class="category-name b-category-name"><i><img src="../images/nut.png"></i><a
                                            class="ml-22" title="坚果、炒货">坚果/炒货</a></h3>
                                    <em>&gt;</em></div>
                                <div class="menu-item menu-in top">
                                    <div class="area-in">
                                        <div class="area-bg">
                                            <div class="menu-srot">
                                                <div class="sort-side">
                                                    <dl class="dl-sort">
                                                        <dt><span title="坚果">坚果</span></dt>
                                                        <c:forEach var="c" items="${nut}">
                                                            <dd><a title="${c.productName}" href="/user/introduction?productId=${c.productId}"><span>${c.productName}</span></a></dd>
                                                        </c:forEach>
                                                    </dl>

                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <b class="arrow"></b>
                            </li>
                            <li class="appliance js_toggle relative">
                                <div class="category-info">
                                    <h3 class="category-name b-category-name"><i><img src="../images/candy.png"></i><a
                                            class="ml-22" title="糖果、蜜饯">糖果/蜜饯</a></h3>
                                    <em>&gt;</em></div>
                                <div class="menu-item menu-in top">
                                    <div class="area-in">
                                        <div class="area-bg">
                                            <div class="menu-srot">
                                                <div class="sort-side">
                                                    <dl class="dl-sort">
                                                        <dt><span title="糖果">糖果</span></dt>
                                                        <c:forEach var="c" items="${sugar}">
                                                            <dd><a title="${c.productName}" href="/user/introduction?productId=${c.productId}"><span>${c.productName}</span></a></dd>
                                                        </c:forEach>
                                                    </dl>

                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <b class="arrow"></b>
                            </li>
                            <li class="appliance js_toggle relative">
                                <div class="category-info">
                                    <h3 class="category-name b-category-name"><i><img src="../images/chocolate.png"></i><a
                                            class="ml-22" title="巧克力">巧克力</a></h3>
                                    <em>&gt;</em></div>
                                <div class="menu-item menu-in top">
                                    <div class="area-in">
                                        <div class="area-bg">
                                            <div class="menu-srot">
                                                <div class="sort-side">
                                                    <dl class="dl-sort">
                                                        <dt><span title="巧克力">巧克力</span></dt>
                                                        <c:forEach var="c" items="${choco}">
                                                            <dd><a title="${c.productName}" href="/user/introduction?productId=${c.productId}"><span>${c.productName}</span></a></dd>
                                                        </c:forEach>
                                                    </dl>

                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <b class="arrow"></b>
                            </li>
                            <li class="appliance js_toggle relative">
                                <div class="category-info">
                                    <h3 class="category-name b-category-name"><i><img src="../images/fish.png"></i><a
                                            class="ml-22" title="果冻">果冻</a></h3>
                                    <em>&gt;</em></div>
                                <div class="menu-item menu-in top">
                                    <div class="area-in">
                                        <div class="area-bg">
                                            <div class="menu-srot">
                                                <div class="sort-side">
                                                    <dl class="dl-sort">
                                                        <dt><span title="果冻">果冻</span></dt>
                                                        <c:forEach var="c" items="${jelly}">
                                                            <dd><a title="${c.productName}" href="/user/introduction?productId=${c.productId}"><span>${c.productName}</span></a></dd>
                                                        </c:forEach>
                                                    </dl>

                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <b class="arrow"></b>
                            </li>
                            <li class="appliance js_toggle relative">
                                <div class="category-info">
                                    <h3 class="category-name b-category-name"><i><img src="../images/tea.png"></i><a
                                            class="ml-22" title="泡面">泡面</a></h3>
                                    <em>&gt;</em></div>
                                <div class="menu-item menu-in top">
                                    <div class="area-in">
                                        <div class="area-bg">
                                            <div class="menu-srot">
                                                <div class="sort-side">
                                                    <dl class="dl-sort">
                                                        <dt><span title="泡面">泡面</span></dt>
                                                        <c:forEach var="c" items="${noodles}">
                                                            <dd><a title="${c.productName}" href="/user/introduction?productId=${c.productId}"><span>${c.productName}</span></a></dd>
                                                        </c:forEach>
                                                    </dl>

                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <b class="arrow"></b>
                            </li>
                            <li class="appliance js_toggle relative last">
                                <div class="category-info">
                                    <h3 class="category-name b-category-name"><i><img src="../images/package.png"></i><a
                                            class="ml-22" title="饮料">饮料</a></h3>
                                    <em>&gt;</em></div>
                                <div class="menu-item menu-in top">
                                    <div class="area-in">
                                        <div class="area-bg">
                                            <div class="menu-srot">
                                                <div class="sort-side">
                                                    <dl class="dl-sort">
                                                        <dt><span title="饮料">饮料</span></dt>
                                                        <c:forEach var="c" items="${drink}">
                                                            <dd><a title="${c.productName}" href="/user/introduction?productId=${c.productId}"><span>${c.productName}</span></a></dd>
                                                        </c:forEach>
                                                    </dl>

                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>

                            </li>
                        </ul>
                    </div>
                </div>

            </div>
        </div>


        <!--轮播-->

        <script type="text/javascript">
            (function () {
                $('.am-slider').flexslider();
            });
            $(document).ready(function () {
                $("li").hover(function () {
                    $(".category-content .category-list li.first .menu-in").css("display", "none");
                    $(".category-content .category-list li.first").removeClass("hover");
                    $(this).addClass("hover");
                    $(this).children("div.menu-in").css("display", "block")
                }, function () {
                    $(this).removeClass("hover")
                    $(this).children("div.menu-in").css("display", "none")
                });
            })
        </script>


        <!--小导航 -->
        <div class="am-g am-g-fixed smallnav">
            <div class="am-u-sm-3">
                <a href="protected/sort.html"><img src="../images/navsmall.jpg"/>
                    <div class="title">商品分类</div>
                </a>
            </div>
            <div class="am-u-sm-3">
                <a href="#"><img src="../images/huismall.jpg"/>
                    <div class="title">大聚惠</div>
                </a>
            </div>
            <div class="am-u-sm-3">
                <a href="#"><img src="../images/mansmall.jpg"/>
                    <div class="title">个人中心</div>
                </a>
            </div>
            <div class="am-u-sm-3">
                <a href="#"><img src="../images/moneysmall.jpg"/>
                    <div class="title">投资理财</div>
                </a>
            </div>
        </div>

        <!--走马灯 -->

        <div class="clear"></div>
    </div>
    <script type="text/javascript">
        if ($(window).width() < 640) {
            function autoScroll(obj) {
                $(obj).find("ul").animate({
                    marginTop: "-39px"
                }, 500, function () {
                    $(this).css({
                        marginTop: "0px"
                    }).find("li:first").appendTo(this);
                })
            }

            $(function () {
                setInterval('autoScroll(".demo")', 3000);
            })
        }
    </script>
</div>
<div class="shopMainbg">
    <div class="shopMain" id="shopmain">

        <!--今日推荐 -->

        <div class="am-g am-g-fixed recommendation">
            <div class="clock am-u-sm-3">
            <img src="../images/2018.png "></img>
            <p>今日<br>推荐</p>
        </div>
        <div class="am-u-sm-4 am-u-lg-3 ">
            <div class="info ">
                <h3>真的有鱼</h3>
                <h4>开年福利篇</h4>
            </div>
            <div class="recommendationMain one">
                <a href="introduction.jsp"><img src="../images/tj.png "></img></a>
            </div>
        </div>
        <div class="am-u-sm-4 am-u-lg-3 ">
            <div class="info ">
                <h3>囤货过冬</h3>
                <h4>让爱早回家</h4>
            </div>
            <div class="recommendationMain two">
                <img src="../images/tj1.png "></img>
            </div>
        </div>
        <div class="am-u-sm-4 am-u-lg-3 ">
            <div class="info ">
                <h3>浪漫情人节</h3>
                <h4>甜甜蜜蜜</h4>
            </div>
            <div class="recommendationMain three">
                <img src="../images/tj2.png "></img>
            </div>
        </div>

    </div>
    <div class="clear "></div>
    <!--热门活动 -->

    <div class="am-container activity ">
        <div class="shopTitle ">
            <h4>活动</h4>
            <h3>每期活动 优惠享不停 </h3>
            <span class="more ">
                              <a href="# ">全部活动<i class="am-icon-angle-right" style="padding-left:10px ;"></i></a>
                        </span>
        </div>
        <div class="am-g am-g-fixed ">
            <div class="am-u-sm-3 ">
                <div class="icon-sale one "></div>
                <h4>秒杀</h4>
                <div class="activityMain ">
                    <img src="../images/activity1.jpg "></img>
                </div>
                <div class="info ">
                    <h3>春节送礼优选</h3>
                </div>
            </div>

            <div class="am-u-sm-3 ">
                <div class="icon-sale two "></div>
                <h4>特惠</h4>
                <div class="activityMain ">
                    <img src="../images/activity2.jpg "></img>
                </div>
                <div class="info ">
                    <h3>春节送礼优选</h3>
                </div>
            </div>

            <div class="am-u-sm-3 ">
                <div class="icon-sale three "></div>
                <h4>团购</h4>
                <div class="activityMain ">
                    <img src="../images/activity3.jpg "></img>
                </div>
                <div class="info ">
                    <h3>春节送礼优选</h3>
                </div>
            </div>

            <div class="am-u-sm-3 last ">
                <div class="icon-sale "></div>
                <h4>超值</h4>
                <div class="activityMain ">
                    <img src="../images/activity.jpg "></img>
                </div>
                <div class="info ">
                    <h3>春节送礼优选</h3>
                </div>
            </div>

        </div>
    </div>
    <div class="clear "></div>


    <div id="f1">
        <!--甜点-->

        <div class="am-container ">
            <div class="shopTitle ">
                <h4>甜品</h4>
                <h3>每一道甜品都有一个故事</h3>
                <div class="today-brands " id="cake_top">

                </div>
                <span class="more ">
                    <a href="# ">更多美味<i class="am-icon-angle-right" style="padding-left:10px ;"></i></a>
                        </span>
            </div>
        </div>

        <div class="am-g am-g-fixed floodFour" id="one_cake">
            <div class="am-u-sm-5 am-u-md-4 text-one list ">
                <div class="word">
                    <c:forEach var="c" items="${cake}" begin="0" end="5">
                        <a class="outer" href="/front/introduction?productId=${c.productId}"><span class="inner"><b class="text">${c.productName}</b></span></a>
                    </c:forEach>
                </div>
                <a href="# ">
                    <div class="outer-con ">
                        <div class="title ">
                            开抢啦！
                        </div>
                        <div class="sub-title ">
                            零食大礼包
                        </div>
                    </div>
                    <img src="../images/act1.png "/>
                </a>
                <div class="triangle-topright"></div>
            </div>

        </div>
        <div class="clear "></div>
    </div>


    <div id="f2">

        <div class="am-container ">
            <div class="shopTitle ">
                <h4>饼干</h4>
                <h3>酥酥脆脆，回味无穷</h3>
                <div class="today-brands " id="cooky_top">

                </div>
                <span class="more ">
                    <a href="# ">更多美味<i class="am-icon-angle-right" style="padding-left:10px ;"></i></a>
                        </span>
            </div>
        </div>
        <div class="am-g am-g-fixed floodThree " id="two_cooky">
            <div class="am-u-sm-4 text-four list">
                <div class="word">
                    <c:forEach var="c" items="${cooky}" begin="0" end="5">
                        <a class="outer" href="/front/introduction?productId=${c.productId}"><span class="inner"><b class="text">${c.productName}</b></span></a>
                    </c:forEach>
                </div>
                <a href="# ">
                    <img src="../images/act1.png "/>
                    <div class="outer-con ">
                        <div class="title ">
                            雪之恋和风大福
                        </div>
                    </div>
                </a>
                <div class="triangle-topright"></div>
            </div>
        </div>
        <div class="clear "></div>
    </div>


    <div id="f3">
        <div class="am-container ">
            <div class="shopTitle ">
                <h4>肉类</h4>
                <h3>每一个肉块都有一个故事</h3>
                <div class="today-brands " id="meat_top">
                </div>
                <span class="more ">
                    <a href="# ">更多美味<i class="am-icon-angle-right" style="padding-left:10px ;"></i></a>
                        </span>
            </div>
        </div>

        <div class="am-g am-g-fixed floodFour" id="three_meat">
            <div class="am-u-sm-5 am-u-md-4 text-one list ">
                <div class="word">
                    <c:forEach var="c" items="${meat}" begin="0" end="5">
                        <a class="outer" href="/front/introduction?productId=${c.productId}"><span class="inner"><b class="text">${c.productName}</b></span></a>
                    </c:forEach>
                </div>
                <a href="# ">
                    <div class="outer-con ">
                        <div class="title ">
                            开抢啦！
                        </div>
                        <div class="sub-title ">
                            零食大礼包
                        </div>
                    </div>
                    <img src="../images/act1.png "/>
                </a>
                <div class="triangle-topright"></div>
            </div>

        </div>
        <div class="clear "></div>
    </div>


    <div id="f4">
        <div class="am-container ">
            <div class="shopTitle ">
                <h4>素食</h4>
                <h3>酥酥脆脆，回味无穷</h3>
                <div class="today-brands " id="vege_top">

                </div>
                <span class="more ">
                    <a href="# ">更多美味<i class="am-icon-angle-right" style="padding-left:10px ;"></i></a>
                        </span>
            </div>
        </div>
        <div class="am-g am-g-fixed floodThree " id="four_vege">
            <div class="am-u-sm-4 text-four list">
                <div class="word">
                    <c:forEach var="c" items="${vege}" begin="0" end="5">
                        <a class="outer" href="/front/introduction?productId=${c.productId}"><span class="inner"><b class="text">${c.productName}</b></span></a>
                    </c:forEach>
                </div>
                <a href="# ">
                    <img src="../images/act1.png "/>
                    <div class="outer-con ">
                        <div class="title ">
                            雪之恋和风大福
                        </div>
                    </div>
                </a>
                <div class="triangle-topright"></div>
            </div>

        </div>

        <div class="clear "></div>
    </div>

<jsp:include page="footer.jsp"></jsp:include>
</div>
</div>
<!--引导 -->
<div class="navCir">
    <li class="active"><a href="home.jsp"><i class="am-icon-home "></i>首页</a></li>
    <li><a href="protected/sort.html"><i class="am-icon-list"></i>分类</a></li>
    <li><a href="protected/shopcart.jsp"><i class="am-icon-shopping-basket"></i>购物车</a></li>
    <li><a href="../person/index.html"><i class="am-icon-user"></i>我的</a></li>
</div>


<!--菜单 -->
<div class=tip>
    <div id="sidebar">
        <div id="wrap">
            <div id="prof" class="item ">
                <a href="# ">
                    <span class="setting "></span>
                </a>
                <div class="ibar_login_box status_login ">
                    <div class="avatar_box ">
                        <p class="avatar_imgbox "><img src="../images/no-img_mid_.jpg "/></p>
                        <ul class="user_info ">
                            <li>用户名sl1903</li>
                            <li>级&nbsp;别普通会员</li>
                        </ul>
                    </div>
                    <div class="login_btnbox ">
                        <a href="# " class="login_order ">我的订单</a>
                        <a href="# " class="login_favorite ">我的收藏</a>
                    </div>
                    <i class="icon_arrow_white "></i>
                </div>

            </div>
            <div id="shopCart " class="item ">
                <a href="# ">
                    <span class="message "></span>
                </a>
                <p>
                    购物车
                </p>
                <p class="cart_num ">0</p>
            </div>
            <div id="asset " class="item ">
                <a href="# ">
                    <span class="view "></span>
                </a>
                <div class="mp_tooltip ">
                    我的资产
                    <i class="icon_arrow_right_black "></i>
                </div>
            </div>

            <div id="foot " class="item ">
                <a href="# ">
                    <span class="zuji "></span>
                </a>
                <div class="mp_tooltip ">
                    我的足迹
                    <i class="icon_arrow_right_black "></i>
                </div>
            </div>

            <div id="brand " class="item ">
                <a href="#">
                    <span class="wdsc "><img src="../images/wdsc.png "/></span>
                </a>
                <div class="mp_tooltip ">
                    我的收藏
                    <i class="icon_arrow_right_black "></i>
                </div>
            </div>

            <div id="broadcast " class="item ">
                <a href="# ">
                    <span class="chongzhi "><img src="../images/chongzhi.png "/></span>
                </a>
                <div class="mp_tooltip ">
                    我要充值
                    <i class="icon_arrow_right_black "></i>
                </div>
            </div>

            <div class="quick_toggle ">
                <li class="qtitem ">
                    <a href="# "><span class="kfzx "></span></a>
                    <div class="mp_tooltip ">客服中心<i class="icon_arrow_right_black "></i></div>
                </li>
                <!--二维码 -->
                <li class="qtitem ">
                    <a href="#none "><span class="mpbtn_qrcode "></span></a>
                    <div class="mp_qrcode " style="display:none; "><img src="../images/weixin_code_145.png "/><i
                            class="icon_arrow_white "></i></div>
                </li>
                <li class="qtitem ">
                    <a href="#top " class="return_top "><span class="top "></span></a>
                </li>
            </div>

            <!--回到顶部 -->
            <div id="quick_links_pop " class="quick_links_pop hide "></div>

        </div>

    </div>
    <div id="prof-content " class="nav-content ">
        <div class="nav-con-close ">
            <i class="am-icon-angle-right am-icon-fw "></i>
        </div>
        <div>
            我
        </div>
    </div>
    <div id="shopCart-content " class="nav-content ">
        <div class="nav-con-close ">
            <i class="am-icon-angle-right am-icon-fw "></i>
        </div>
        <div>
            购物车
        </div>
    </div>
    <div id="asset-content " class="nav-content ">
        <div class="nav-con-close ">
            <i class="am-icon-angle-right am-icon-fw "></i>
        </div>
        <div>
            资产
        </div>

        <div class="ia-head-list ">
            <a href="# " target="_blank " class="pl ">
                <div class="num ">0</div>
                <div class="text ">优惠券</div>
            </a>
            <a href="# " target="_blank " class="pl ">
                <div class="num ">0</div>
                <div class="text ">红包</div>
            </a>
            <a href="# " target="_blank " class="pl money ">
                <div class="num ">￥0</div>
                <div class="text ">余额</div>
            </a>
        </div>

    </div>
    <div id="foot-content " class="nav-content ">
        <div class="nav-con-close ">
            <i class="am-icon-angle-right am-icon-fw "></i>
        </div>
        <div>
            足迹
        </div>
    </div>
    <div id="brand-content " class="nav-content ">
        <div class="nav-con-close ">
            <i class="am-icon-angle-right am-icon-fw "></i>
        </div>
        <div>
            收藏
        </div>
    </div>
    <div id="broadcast-content " class="nav-content ">
        <div class="nav-con-close ">
            <i class="am-icon-angle-right am-icon-fw "></i>
        </div>
        <div>
            充值
        </div>
    </div>
</div>
<script>
    window.jQuery || document.write('<script src="basic/js/jquery.min.js "><\/script>');
</script>
<script type="text/javascript " src="../basic/js/quick_links.js "></script>
</body>

</html>